import type { AnyObject } from "@/types/category";
import request from "@/utils/request";

export const reqQueryAlbumPage = (id: number) => {
  return request.get<any, AnyObject>(
    `/m-revision/page/album/v2/queryAlbumPage/${id}`
  );
};
export const reqQueryAlbumByPage = (params: AnyObject) => {
  return request.get<any, AnyObject>(
    `https://m.ximalaya.com/m-revision/common/album/queryAlbumTrackRecordsByPage?albumId=${params.albumId}&page=${params.page}&pageSize=${params.pageSize}&asc=${params.asc}&countKeys=play%2Ccomment&v=${params.v}`,
    params
  );
};
